.hero {
    position: relative;
    height: 450px;
    width: 100%;
    max-width: 1360px;
    padding: var(--space-m);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background-position: right;
    overflow: hidden;
    gap: var(--space-l);
}

.hero__video {
    object-position: center bottom;
    width: 100%;
    object-fit: cover;
    max-height: 600px;
    max-width: 1400px;
}

.hero__mobile-vid-container {
    display: none;
    position: relative;
    width: 100%;
    max-height: 600px;
}

.hero__mobile-vid-container::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero__video-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero__image {
    position: absolute;
    inset: 0;
    object-fit: cover;
    max-height: 600px;
    width: 100%;
    height: 100%;
}

.hero__content {
    height: 100%;
    max-width: 55%;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: flex-start;
    color: #fff;
    gap: 16px;
    z-index: 0;
}

.offers {
    display: grid;
    padding: var(--space-m) 0px 0px;
    gap: var(--space-s);

    .offers__media {
        position: absolute;
        object-fit: cover;
        height: 100%;
        width: 100%;
        object-position: center;
    }

    .offers__media--video {
        object-position: 50% 70%;
    }

    .offers__text,
    .offers__content {
        position: relative;
        max-height: 270px;
        z-index: 1;
        padding: var(--space-s);
    }

    .offers__content {
        height: 100%;
        padding: var(--space-s);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
    }

    .offers__tile {
        position: relative;
        height: 100%;
        width: 100%;
        min-height: 100%;
    }

    .offers__tile:is(:hover, :focus) {
        .offers__button,
        .offers__tile-bottom-button {
            background-color: #008cba;
            color: #fff;
        }

        .offers__button--secondary,
        .offers__tile-bottom-button--secondary {
            background-color: #ffdc00;
            color: #00263d;
        }

        .offers__tile-hover-content {
            display: flex;
        }
    }

    .offers__tile-bottom-button,
    .offers__tile-bottom-button--secondary {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 8px 0;
        z-index: 1;
    }

    .offers__tile-bottom-button--secondary {
        background-color: rgba(0, 38, 61, 0.65);
        color: #fff;
    }

    .offers__tile-hover-content {
        position: absolute;
        inset: 0;
        height: 100%;
        width: 100%;
        display: none;
        flex-direction: column;
        padding: 16px;
        align-items: center;
        text-align: center;
        justify-content: center;
        background-color: rgba(0, 38, 61, 0.7);
    }
}

.products {
    margin: var(--space-m) 0;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: var(--space-m);

    .products__header {
        margin: 0;
    }

    .products__container {
        display: flex;
        gap: var(--space-s);
    }

    .products__tile {
        position: relative;
        height: 260px;
        width: 24%;
        display: flex;
        flex-direction: column;
        /* transition:
            transform 0.3s,
            left 0.3s; */
        overflow: hidden;
    }

    .products__tile-background {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: left center;
    }

    .products__tile-content {
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-s);
        z-index: 1;
    }

    .products__tile-logo {
        width: auto;
        max-height: 50px;
        object-fit: cover;
    }

    .products__tile-header,
    .products__tile-text {
        display: none;
        margin: 0;
        color: #fff;
        text-align: left;
        
        p {
            color: #fff;
        }
    }

    .products__tile-header--overlay {
        color: #fff;
    }

    .products__tile:hover {
        position: absolute;
        width: 100%;
        z-index: 10;

        .products__tile-content {
            padding: var(--space-m);
            align-items: flex-start;
            background-color: rgba(0, 0, 0, 0.4);
            
        }

        .products__tile-header,
        .products__tile-text {
            display: block;
        }

        .products__tile-header--overlay {
            display: none;
        }
    }
}

@media only screen and (max-width: 1200px) {
    .products {
        .products__container {
            flex-wrap: wrap;
        }

        .products__tile {
            width: 48%;
        }

        .products__tile-content {
            padding: var(--space-m);
            gap: var(--space-2xs);
        }

        .products__tile:hover {
            position: relative;
            width: 48%;
        }
    }
}

@media only screen and (max-width: 992px) {
    .hero__video {
        display: none;
    }

    .hero__video--mobile {
        display: block;
        width: unset;
        max-height: 350px;
    }

    .hero__mobile-vid-container {
        display: flex;
        justify-content: center;
    }

    .offers {
        display: flex;
        flex-flow: row wrap;
    }
}

@media only screen and (max-width: 768px) {
    .hero {
        height: fit-content;

        .hero__content {
            max-width: 100%;
        }

        .hero__image {
            object-position: left;
        }
    }

    .offers__tile--shadowed::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1;
        pointer-events: none;
    }

    .products {
        .products__tile {
            width: 100%;
        }

        
        .products__tile:hover {
            width: 100%;
        }
    }
}

@media only screen and (max-width: 576px) {
    .hero {
        background-position: left;
        gap: var(--space-s);
    }
}
